// 家的地址，公司的地址
<template>
 <!-- <van-pull-refresh v-model="isLoading" @refresh="onRefresh"> -->
    <div>
       
        <div class="top10">
            <van-nav-bar :title=title  right-text="保存" left-arrow :fixed='true' @click-left="onClickLeft" :border='false'>
            
            <van-icon name="arrow-left" slot="left" color="black" size="0.5rem" />
            </van-nav-bar>
        </div>
        <div>
            <router-view @toparent="getval"></router-view>
        </div>
    </div>
<!-- </van-pull-refresh> -->
</template>
<script>
    export default{
        data(){
            return{
               isLoading: false,
               title:'设置地址'
            
            }
            
        },
        methods:{
            onClickLeft(){
				this.$router.go(-1)
            },
             onRefresh() {
            setTimeout(() => {
                this.$toast('刷新成功');
                this.isLoading = false;
                this.count++;
            }, 500);
            },
            getval(msg){
            this.title = msg
        },
            }
        
    }

</script>


<style>
    *{margin: 0 ;padding:0;}
    .top10{border-bottom:3px solid rgba(99, 96, 96, 0.034);margin-top: 1.2rem;}
    .top h3{margin-left:-70%}
    
</style>